﻿using System;
using System.Windows;
using ChessKit.Common;

namespace BoardPanel
{
  public partial class MainWindow
  {
    public MainWindow()
    {
      InitializeComponent();
    }

    private static readonly Random Rnd = new Random();

    private void Button_Click(object sender, RoutedEventArgs e)
    {

      ChessKit.Ui.BoardPanel.SetLocation(_e2Pawn, 
        BoardLocation.Cell(Rnd.Next(1, 8), Rnd.Next(1, 8)));
    }
  }
}
